package com.itheima.springbootmybatislilingguo.service.impl;

import com.itheima.springbootmybatislilingguo.domain.LogInfo;
import com.itheima.springbootmybatislilingguo.mapper.LogInfoMapper;
import com.itheima.springbootmybatislilingguo.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("logInfoService")
public class LogInfoServiceImpl implements LogInfoService {

    @Autowired
    private LogInfoMapper logInfoMapper;

    @Override
    public void save(LogInfo logInfo) {
        logInfoMapper.save(logInfo);
    }

    @Override
    public List<LogInfo> findByCondition(LogInfo logInfo) {
        return logInfoMapper.findAll();
    }
}
